import { Routes, Route, HashRouter } from 'react-router-dom'
import Layout from './page/Layout'
import Node from './page/node/index'
import Channel from './page/channel'
import CreateChannel from './page/createChannel/index'
import DeleteChannel from './page/deleteChannel/index'
import OnChannel from './page/onLine/index'
import OffChannel from './page/offLine/index'
import Config from './page/config/index'
import Client from './page/client'
import BroadcastCategory from './page/category/broadcast'
import BroadcastChannel from './page/category/channel'
import NodeManage from './page/nodeManage/index'

function App() {
  return (
    <HashRouter>
      <Routes>
        <Route path="/" element={<Layout />} >
          <Route path="/node" element={<Node />} />
          <Route path="/Channel" element={<Channel />} />
          <Route path="/createChannel" element={<CreateChannel />} />
          <Route path="/removeChannel" element={<DeleteChannel />} />
          <Route path="/onChannel" element={<OnChannel />} />
          <Route path="/offChannel" element={<OffChannel />} />
          <Route path="/config" element={<Config />} />
          <Route path="/client" element={<Client />} />
          <Route path="/BroadcastCategory" element={<BroadcastCategory />} />
          <Route path="/BroadcastChannel" element={<BroadcastChannel />} />
          <Route path="/nodeManage" element={<NodeManage />} />
        </Route>
        <Route path="*" element={<Layout />} />
      </Routes>
    </HashRouter>
  )
}

export default App